import service from "../index";

export const GetEmployeeInfos = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/GetEmployeeInfos",
      params,
    });
  
  };


  export const DeleteEmployeeInfo = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/DeleteEmployeeInfo",
      params,
    });
  
  };



  export const DeleteQualityProblemCase = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/DeleteQualityProblemCase",
      params,
    });
  
  };



  export const AddEmployeeInfo = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/AddEmployeeInfo",
      params,
    });
  
  };


    export const GenerateWorkloadStatisticsFile = (data) => {
    return service({
      method: "POST",
      url: "/api/Department/GenerateWorkloadStatisticsFile",
      data,
      responseType: "blob",
    });
  
  };






  export const AddUpdateDesignOptimizationScheme = (data) => {
    return service({
      method: "POST",
      url: "/api/Department/AddUpdateDesignOptimizationScheme",
      data,
    });
  
  };


  export const AddUpdateQualityProblemCase = (data) => {
    return service({
      method: "POST",
      url: "/api/Department/AddUpdateQualityProblemCase",
      data,
    });
  
  };




  export const GetDesignOptimizationSchemes = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/GetDesignOptimizationSchemes",
      params,
    });
  
  };



  
  export const GetQualityProblemCases = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/GetQualityProblemCases",
      params,
    });
  
  };





  export const DeleteDesignOptimizationScheme = (params) => {
    return service({
      method: "GET",
      url: "/api/Department/DeleteDesignOptimizationScheme",
      params,
    });
  
  };





